# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=malboxes
pkgver=449.f9f310e
pkgrel=7
pkgdesc="Builds malware analysis Windows VMs so that you don't have to."
groups=('blackarch-malware')
arch=('any')
url='https://github.com/GoSecure/malboxes'
license=('GPL')
depends=('python' 'packer' 'virtualbox' 'vagrant' 'python-jsmin' 'python-jinja')
makedepends=('python-pip' 'git')
options=(!emptydirs)
source=("git+https://github.com/GoSecure/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  PIP_CONFIG_FILE=/dev/null pip3 install --isolated --root="$pkgdir" \
    --ignore-installed --no-deps ./
}

